package com.javajun.endofterm.service;

import com.javajun.endofterm.common.CommonService;
import com.javajun.endofterm.entity.PowerRecord;
import com.javajun.endofterm.repository.PowerRecordRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author: Xiong Limin
 * Date: 2020-12-02-9:43 下午
 */
@Service
public class PowerRecordService extends CommonService<PowerRecord, Integer> {
    @Autowired
    private PowerRecordRepository powerRecordRepository;

    public Page<PowerRecord> findByDomitoryId(Pageable pageable, Integer domiId) {
        return powerRecordRepository.findByDomitoryId(pageable, domiId);
    }

}
